local qingsha = fk.CreateSkill({
    name = "sj6__qingsha",
    tags = {Skill.Compulsory},
})

Fk:loadTranslationTable{
  ["sj6__qingsha"] = "倾厦",
  [":sj6__qingsha"] = "<b>锁定技</b>，当你的体力值变化后，若“非”的数量大于你的体力值，你移除所有“非”并受到2点无来源伤害。",
  
  ["$sj6__qingsha1"] = "这是要我命归黄泉吗？",
  ["$sj6__qingsha2"] = "命啊！命！",
}

qingsha:addEffect(fk.HpChanged, {
    can_trigger = function(self, event, target ,player, data)
      return player:hasSkill(qingsha.name) and target == player and 
      player:getMark("@sj6__banghui") > player.hp and --标记大于体力
      player:getMark("@sj6__banghui") > 0 --必须有标记
    end,
    on_use = function(self, event, target, player, data)
      local room = player.room
      room:setPlayerMark(player,"@sj6__banghui",0)
      room:damage{to = player, damage = 2, skillName = qingsha.name}
    end,
})

return qingsha